package com.framework.plm.bas.web.controller;

import java.io.Serializable;
import java.util.List;

public class PageSupport implements Serializable{
    private static final long serialVersionUID = 1L;
    
    /**
	 * JSON分页处理
	 */
	protected int totalRecord; //总记录数
	protected int curPageNo; //当前页码
	protected int totalPage; //总页码
	protected int pageSize; //每页记录数
	protected List<?> resultList;
	protected String queryString;
	
	public int getTotalRecord() {
		return totalRecord;
	}
	public void setTotalRecord(int totalRecord) {
		this.totalRecord = totalRecord;
	}
	public int getCurPageNo() {
		return curPageNo <=0 ? 1:curPageNo;
	}
	public void setCurPageNo(int curPageNo) {
		if(curPageNo <=0){
			this.curPageNo = 1;
		}else{
			this.curPageNo = curPageNo;
		}
	}
	public int getTotalPage() {
		return totalPage;
	}
	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public void setResultList(List<?> results) {
		this.resultList = results;
	}
	public List<?> getResultList() {
		return resultList;
	}
	public String getQueryString(){
		return this.queryString;
	}
	public void setQueryString(String queryString){
		this.queryString = queryString;
	}

}
